package com.budwk.app.sqfw.northstation.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * @author wizzer(wizzer.cn) on 2016/7/1.
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("shequ.ns_device_info")
@ApiModel(description = "设别记录表")
public class NsDeviceInfo extends BaseModel implements Serializable {


    @Name
    @Comment("编号")
    @Column("id")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(uu32 = true, nullEffective = true)
    private String id;


    @Comment("deviceid")
    @Column("deviceid")
    @ApiModelProperty(description = "设备ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String deviceid;

    @Comment("设备名字")
    @Column("name")
    @ApiModelProperty(description = "设备名字")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String name;


    @Comment("经度")
    @Column("latitude")
    @ApiModelProperty(description = "经度")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String latitude;


    @Comment("维度")
    @Column("longitude")
    @ApiModelProperty(description = "维度")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String longitude;


    @Comment("设备类型")
    @Column("type")
    @ApiModelProperty(description = "设备类型")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String type;

    @Comment("设备状态是否在线")
    @Column("status")
    @ApiModelProperty(description = "设备状态是否在线")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String status;

}
